package com.cloudm.technician.ui.modules.common.home

import com.cloudm.technician.data.model.VersionInfo
import com.cloudm.technician.ui.base.BasePresenter
import com.cloudm.technician.ui.base.BaseView

/**
 * 作者: wesley
 * 时间: 2017/12/18
 * 描述: 首页的协议接口
 */
interface HomeContract {

    interface View: BaseView {

        fun checkVersionSuccess(info: VersionInfo)

        fun showUpdateDialog(info: VersionInfo)

        fun showScanResultEmpMsg()

        fun showLicenseFormatMsg()

        fun showRightLicense(license: String)
    }


    interface Presenter: BasePresenter{

        fun checkVersion(versionName: String)

        fun checkShouldUpdate(info: VersionInfo, versionName: String)

        fun dealWithScanResult(value: String?)
    }
}